package com.cfl.springboot.service;

import com.cfl.springboot.model.User;


public interface UserService {

	/**
	 * 登录
	 * @param name
	 * @param password
	 * @return
	 * @throws Exception
	 */
	public int login(String name, String password) throws Exception;
	
	/**
	 * 注册
	 * @param name
	 * @param password
	 * @throws Exception
	 */
	public void saveRegister(String name, String password) throws Exception;
	
	/**
	 * 通过用户名获取用户
	 * @param name
	 * @return
	 * @throws Exception
	 */
	public User findByName(String name) throws Exception;
}
